package sgi.client;

import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.SwingConstants;
import javax.swing.JTextField;
import javax.swing.JCheckBox;

public class DataLayerSubscriptionPanel extends JPanel {
	private JTextField textFieldUserName;
	private JCheckBox chckbxInfrastracture;
	private JCheckBox chckbxCommerce;

	/**
	 * Create the DataLayer panel.
	 */
	public DataLayerSubscriptionPanel() {
		
		setLayout(null);
			
		chckbxInfrastracture = new JCheckBox("Infrastracture");
		chckbxInfrastracture.setBounds(31, 73, 111, 23);
		add(chckbxInfrastracture);
		
		chckbxCommerce = new JCheckBox("Commerce");
		chckbxCommerce.setBounds(144, 73, 97, 23);
		add(chckbxCommerce);
	}
	
	public String getUserName()
	{
		return textFieldUserName.getText();
	}

	public boolean getChckbxInfrastracture() {
		return chckbxInfrastracture.isSelected();
	}

	public boolean getchckbxCommerce() {
		return chckbxCommerce.isSelected();
	}

}
